/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hk.shop.service.product;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.hk.shop.entity.product.HkShopProductColor;
import com.thinkgem.jeesite.modules.hk.shop.dao.product.HkShopProductColorDao;

/**
 * 乐购商品颜色Service
 * @author 罗天文
 * @version 2018-05-19
 */
@Service
@Transactional(readOnly = true)
public class HkShopProductColorService extends CrudService<HkShopProductColorDao, HkShopProductColor> {

	public HkShopProductColor get(String id) {
		return super.get(id);
	}
	
	public List<HkShopProductColor> findList(HkShopProductColor hkShopProductColor) {
		return super.findList(hkShopProductColor);
	}
	
	public Page<HkShopProductColor> findPage(Page<HkShopProductColor> page, HkShopProductColor hkShopProductColor) {
		return super.findPage(page, hkShopProductColor);
	}
	
	@Transactional(readOnly = false)
	public void save(HkShopProductColor hkShopProductColor) {
		super.save(hkShopProductColor);
	}
	
	@Transactional(readOnly = false)
	public void delete(HkShopProductColor hkShopProductColor) {
		super.delete(hkShopProductColor);
	}
	@Transactional(readOnly = false)
    public void deleteByProduct(HkShopProductColor hkShopProductColor) {
   dao.deleteByProduct(hkShopProductColor);
    }
}